package com.demo2.todo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * @author evi
 */
@SpringBootApplication
@EnableJpaRepositories(basePackages = "com.demo2.todo.repository") // 确保扫描到 Repository
@EntityScan(basePackages = "com.demo2.todo.model") // 确保扫描到实体类
public class TodoApplication {
    public static void main(String[] args) {
        SpringApplication.run(TodoApplication.class, args);
    }
}